CVGREYC_PATH = ../../python-cvgreyc
#CVGREYC_PATH = $(HOME)/Develop/python-cvgreyc
SOURCE = Sampler.cpp SamplerWrapper.cpp SamplerWrapper.cpp
OBJECTS = Sampler.o SamplerWrapper.o
CFLAGS = -Wall -ansi -pedantic -shared -fPIC -g -I$(CVGREYC_PATH)/include

all : $(OBJECTS) libsampler.so tests_dir

clean :
	rm *.o
	rm libsampler.so
	make -C tests clean

tests_dir :
	make -C tests

libsampler.so : $(OBJECTS)
	g++ $^ -o $@ $(CFLAGS)

%.o : %.cpp %.h
	g++ -c $< -o $@ $(CFLAGS)

	
